package hzau.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import hzau.pojo.requestParams.TeacherRegisterParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher implements Serializable {
//    @TableId(type = IdType.AUTO)
    private  Long id;
    private String name;
    private Integer age;
    private String email;
    private Integer level;
    private String phoneNumber;
//    private String pic;
//    private String password;
    private Long collegeId;
    private Byte gender;
//    private String auth;
    public Teacher(TeacherRegisterParam teacherRegisterParam){
        this.id=teacherRegisterParam.getId();
        this.name=teacherRegisterParam.getName();
        this.age=teacherRegisterParam.getAge();
        this.collegeId=teacherRegisterParam.getCollegeId();
        this.email=teacherRegisterParam.getEmail();
        this.level=teacherRegisterParam.getLevel();
        this.phoneNumber=teacherRegisterParam.getPhoneNumber();
//        this.password=teacherRegisterParam.getPassword();
//        this.pic=teacherRegisterParam.getPic();
        this.gender=teacherRegisterParam.getGender();
//        this.auth="teacher";
    }
}
